<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
	<title>Microsoft Excel | ElasticSearch 7.7 权威指南中文版</title>
	<meta name="keywords" content="ElasticSearch 权威指南中文版, elasticsearch 7, es7, 实时数据分析，实时数据检索" />
    <meta name="description" content="ElasticSearch 权威指南中文版, elasticsearch 7, es7, 实时数据分析，实时数据检索" />
    <!-- Give IE8 a fighting chance -->
    <!--[if lt IE 9]>
    <script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script>
    <script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
    <![endif]-->
	<link rel="stylesheet" type="text/css" href="../static/styles.css" />
	<script>
	var _link = 'sql-client-apps-excel.html';
    </script>
</head>
<body>
<div class="main-container">
    <section id="content">
        <div class="content-wrapper">
            <section id="guide" lang="zh_cn">
                <div class="container">
                    <div class="row">
                        <div class="col-xs-12 col-sm-8 col-md-8 guide-section">
                            <div style="color:gray; word-break: break-all; font-size:12px;">原英文版地址: <a href="https://www.elastic.co/guide/en/elasticsearch/reference/7.7/sql-client-apps-excel.html" rel="nofollow" target="_blank">https://www.elastic.co/guide/en/elasticsearch/reference/7.7/sql-client-apps-excel.html</a>, 原文档版权归 www.elastic.co 所有<br/>本地英文版地址: <a href="../en/sql-client-apps-excel.html" rel="nofollow" target="_blank">../en/sql-client-apps-excel.html</a></div>
                        <!-- start body -->
                  <div class="page_header">
<strong>重要</strong>: 此版本不会发布额外的bug修复或文档更新。最新信息请参考 <a href="https://www.elastic.co/guide/en/elasticsearch/reference/current/index.html" rel="nofollow">当前版本文档</a>。
</div>
<div id="content">
<div class="breadcrumbs">
<span class="breadcrumb-link"><a href="index.html">Elasticsearch Guide [7.7]</a></span>
»
<span class="breadcrumb-link"><a href="xpack-sql.html">SQL access</a></span>
»
<span class="breadcrumb-link"><a href="sql-client-apps.html">SQL Client Applications</a></span>
»
<span class="breadcrumb-node">Microsoft Excel</span>
</div>
<div class="navheader">
<span class="prev">
<a href="sql-client-apps-dbvis.html">« DbVisualizer</a>
</span>
<span class="next">
<a href="sql-client-apps-powerbi.html">Microsoft Power BI Desktop »</a>
</span>
</div>
<div class="section xpack">
<div class="titlepage"><div><div>
<h2 class="title">
<a id="sql-client-apps-excel"></a>Microsoft Excel<a class="edit_me edit_me_private" rel="nofollow" title="Editing on GitHub is available to Elastic" href="https://github.com/elastic/elasticsearch/edit/7.7/docs/reference/sql/endpoints/client-apps/excel.asciidoc">edit</a><a class="xpack_tag" href="https://www.elastic.co/subscriptions"></a>
</h2>
</div></div></div>
<p>You can use the Elasticsearch ODBC driver to access Elasticsearch data from Microsoft Excel.</p>
<div class="important admon">
<div class="icon"></div>
<div class="admon_content">
<p>Elastic does not endorse, promote or provide support for this application; for native Elasticsearch integration in this product, please reach out to its vendor.</p>
</div>
</div>
<div class="section">
<div class="titlepage"><div><div>
<h3 class="title">
<a id="_prerequisites_3"></a>Prerequisites<a class="edit_me edit_me_private" rel="nofollow" title="Editing on GitHub is available to Elastic" href="https://github.com/elastic/elasticsearch/edit/7.7/docs/reference/sql/endpoints/client-apps/excel.asciidoc">edit</a>
</h3>
</div></div></div>
<div class="ulist itemizedlist">
<ul class="itemizedlist">
<li class="listitem">
<a href="https://products.office.com/en/excel" class="ulink" target="_top">Microsoft Office</a> 2016 or higher
</li>
<li class="listitem">
Elasticsearch SQL <a class="xref" href="sql-odbc.html" title="SQL ODBC">ODBC driver</a>
</li>
<li class="listitem">
A preconfigured User or System DSN (see <a class="xref" href="sql-odbc-setup.html#dsn-configuration" title="2. Configure a DSN">Configuration</a> section on how to configure a DSN).
</li>
</ul>
</div>
</div>

<div class="section">
<div class="titlepage"><div><div>
<h3 class="title">
<a id="_load_data_into_a_spreadsheet"></a>Load data into a spreadsheet<a class="edit_me edit_me_private" rel="nofollow" title="Editing on GitHub is available to Elastic" href="https://github.com/elastic/elasticsearch/edit/7.7/docs/reference/sql/endpoints/client-apps/excel.asciidoc">edit</a>
</h3>
</div></div></div>
<p>First, you’ll need to choose ODBC as the source to load data from. To do so, click on the <em>Data</em> tab, then <em>New Query</em> button, in the
drop-down menu expand <em>From Other Sources</em>, then choose <em>From ODBC</em>:</p>
<p><a id="apps_excel_fromodbc"></a><strong>ODBC as data source</strong><span class="image"><img src="../static/images/sql/odbc/apps_excel_fromodbc.png" alt="apps excel fromodbc"></span></p>
<p>This will open a new window with a drop down menu populated with the DSNs that Excel found on the system. Choose a DSN configured to
connect to your Elasticsearch instance and press the <em>OK</em> button:</p>
<p><a id="apps_excel_dsn"></a><strong>Choose a DSN</strong><span class="image"><img src="../static/images/sql/odbc/apps_excel_dsn.png" alt="apps excel dsn"></span></p>
<p>This will lead to a new window, allowing the user to input the connection credentials.</p>
<p>A username might be required by Excel even if the Elasticsearch instance has no security enabled. Providing a bogus username with no password in
this case will not hinder the connectivity. Note however that Excel will cache these credentials (so in case you do have security enabled,
you won’t be prompted for the credentials a second time).</p>
<p>Fill in the username and the password and press
<em>Connect</em>.</p>
<p><a id="apps_excel_cred"></a><strong>Provide connection credentials</strong><span class="image"><img src="../static/images/sql/odbc/apps_excel_cred.png" alt="apps excel cred"></span></p>
<p>Once connected, Excel will read Elasticsearch’s catalog and offer the user a choice of tables (indices) to load data from. Clicking on one of the
tables will load a preview of the data within:</p>
<p><a id="apps_excel_picktable"></a><strong>Pick table to load</strong><span class="image"><img src="../static/images/sql/odbc/apps_excel_picktable.png" alt="apps excel picktable"></span></p>
<p>Now click the <em>Load</em> button, which will have Excel load all the data from the table into a spreadsheet:</p>
<p><a id="apps_excel_loaded"></a><strong>Data loaded in spreadsheet</strong><span class="image"><img src="../static/images/sql/odbc/apps_excel_loaded.png" alt="apps excel loaded"></span></p>
</div>

</div>
<div class="navfooter">
<span class="prev">
<a href="sql-client-apps-dbvis.html">« DbVisualizer</a>
</span>
<span class="next">
<a href="sql-client-apps-powerbi.html">Microsoft Power BI Desktop »</a>
</span>
</div>
</div>

                  <!-- end body -->
                        </div>
                        <div class="col-xs-12 col-sm-4 col-md-4" id="right_col">
                        
                        </div>
                    </div>
                </div>
            </section>
        </div>
    </section>
</div>
<script src="../static/cn.js"></script>
</body>
</html>